package com.juc.forkJoin.forkJoin3;

import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.ForkJoinTask;

public class Test2 {

	public static void main(String[] args) throws InterruptedException {
		MyRecursiveTask task1 = new MyRecursiveTask();
		System.out.println(task1.hashCode());
		ForkJoinPool pool = new ForkJoinPool();
		ForkJoinTask<Integer> task2 = pool.submit(task1);
		System.out.println(task2.hashCode() + "     "  + task2.join());
		Thread.sleep(5000);
	}
}
